import Vue from 'vue'
import 'normalize.css/normalize.css'
import '@/styles/index.scss' // global css
import '@/permission'
import './plugins/elementui/index'
import App from './App'
import store from './store'
import router from './router'
import Vant from 'vant';
import 'vant/lib/index.css';
import '@/icons' // icon
Vue.config.productionTip = false
import ElSelectTree from 'el-select-tree'
Vue.use(ElSelectTree)
import DragUpload from '@/components/DragUpload'
Vue.component('DragUpload', DragUpload)
Vue.use(ElSelectTree)
// eslint-disable-next-line no-undef
Vue.prototype.baseUrl = baseUrl

import SwitchTabs from '@/components/SwitchTabs';
Vue.component('SwitchTabs', SwitchTabs)

import MapTool from '@/components/MapTool';
Vue.component('MapTool', MapTool)

Vue.use(Vant)
import * as echarts from 'echarts/lib/echarts'
Vue.prototype.$echarts = echarts;
import { TooltipComponent, DataZoomComponent, GridComponent, LegendComponent } from 'echarts/components';
echarts.use([TooltipComponent, DataZoomComponent, GridComponent, LegendComponent]);

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
